package com.tai.design.memento.white_box;

/**
 * The type Role state caretaker.
 *
 * @version v1.0
 * @ClassName: RoleStateCaretaker
 * @Description: 备忘录对象管理对象
 * @Author: taylor
 */
public class RoleStateCaretaker {

    //声明RoleStateMemento类型的变量
    private RoleStateMemento roleStateMemento;

    /**
     * Gets role state memento.
     *
     * @return the role state memento
     */
    public RoleStateMemento getRoleStateMemento() {
        return roleStateMemento;
    }

    /**
     * Sets role state memento.
     *
     * @param roleStateMemento the role state memento
     */
    public void setRoleStateMemento(RoleStateMemento roleStateMemento) {
        this.roleStateMemento = roleStateMemento;
    }
}
